Skip to main content

Execute JavaScripts on Android Devices Using SureMDM

SureMDM allows administrators to deploy JavaScript commands on Android devices to automate various tasks. To create a job to run customized scripts and deploy it to the enrolled device(s) or group(s) remotely, follow these steps:

  1. On the SureMDM Web Console, navigate to Jobs > New Job > Android > Run Script.

  2. In the Run Script prompt, enter a Job Name, select Javascript from the drop-down on the right side, and enter the Javascript in the script box.

Here is the list of API's we offer in our JavaScript.

note

The script should start with the prefix !#suremdmjs, which signals SureMDM to execute it as a JavaScript command on the device.

  1. On successful validation, click Save to save the job and push it on the device(s).